/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: wangxin
 * Date: 2024-12-18
 * Time: 19:39
 */
public class Test {
    public static void main(String[] args) {
        MyAVLTree avlTree = new MyAVLTree();
        int[] arr = {4, 2, 6, 1, 3, 5, 15, 7, 16, 14};
        for(int i = 0; i < arr.length;i++){
            avlTree.insert(arr[i]);
        }
        System.out.println(avlTree.isBalance(avlTree.root));
    }
}
